package com.gs.controller;

import com.gs.entity.User;
import com.gs.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ProjectName: springbootmybits
 * @Package: com.gs.controller
 * @Description: java类作用描述
 * @Author: Administrator
 * @CreateDate: 2018/5/18 16:20
 * @UpdateUser: Administrator
 * @UpdateDate: 2018/5/18 16:20
 * @UpdateRemark: The modified content
 * @Version: 1.0
 **/
@RestController
public class IndexController {

    @Autowired
    private UserService userService;

    @RequestMapping("/getUserInfo")
    public List<User> getUserInfo() {
        List<User> user = userService.getUserInfo();
        System.out.println(user.toString());
        return user;
    }




}
